home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 26 / AACD 26.iso / AACD / Programming / wfimage / src / waveforms.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-09-05  |  2.6 KB  |  102 lines

  1. #ifndef WAVEFORMS_H
  2. #define WAVEFORMS_H
  3.  
  4. /* Force use of new variable names to help prevent errors */
  5. #define INTUI_V36_NAMES_ONLY
  6. #define ASL_V38_NAMES_ONLY
  7.  
  8. #define DB(x) ;
  9.  
  10. #include <exec/types.h>
  11. #include <exec/libraries.h>
  12. #include <exec/memory.h>
  13.  
  14. #include <graphics/gfxmacros.h>
  15. #include <graphics/gfx.h>
  16. #include <graphics/rastport.h>
  17. #include <graphics/displayinfo.h>
  18. #include <graphics/gfxbase.h>
  19.  
  20. #include <intuition/intuition.h>
  21. #include <intuition/intuitionbase.h>
  22. #include <intuition/cghooks.h>
  23. #include <intuition/screens.h>
  24. #include <intuition/classes.h>
  25. #include <intuition/classusr.h>
  26. #include <intuition/icclass.h>
  27. #include <intuition/imageclass.h>
  28. #include <intuition/gadgetclass.h>
  29.  
  30. #include <libraries/gadtools.h>
  31.  
  32. #include <clib/exec_protos.h>
  33. #include <clib/intuition_protos.h>
  34. #include <clib/gadtools_protos.h>
  35. #include <clib/graphics_protos.h>
  36. #include <clib/utility_protos.h>
  37. #include <clib/diskfont_protos.h>
  38. #include <clib/alib_protos.h>
  39. #include <clib/macros.h>
  40.  
  41. #include <pragmas/exec_pragmas.h>
  42. #include <pragmas/intuition_pragmas.h>
  43. #include <pragmas/gadtools_pragmas.h>
  44. #include <pragmas/graphics_pragmas.h>
  45. #include <pragmas/utility_pragmas.h>
  46.  
  47. #include <utility/tagitem.h>
  48. #include <utility/hooks.h>
  49.  
  50.  
  51. #define LIBRARY_VER           40L
  52.  
  53.  
  54. #define XTAG( expr, tagid ) ((Tag)((expr)?(tagid):(TAG_IGNORE)))
  55.  
  56. /* Subclass specific tags - start just after the image.class specific tags for now. */
  57.  
  58. #define WFI_Dummy       (IA_Dummy + 0x21)
  59.  
  60. #define WFI_WaveShape   (WFI_Dummy + 1)
  61.       /* the phase value for a square wave */
  62.  
  63. #define WFI_WaveType    (WFI_Dummy + 2)
  64.       /* the type of waveform - see below */
  65.  
  66. #define WFI_Outline     (WFI_Dummy + 3)
  67.       /* how to draw the waveform, solid or dotted */
  68.  
  69. #define WFI_BoxFrame    (WFI_Dummy + 4)
  70.       /* whether we want a frame around the graphic or NOT */
  71.  
  72. #define WFI_WavePen     (WFI_Dummy + 5)
  73.       /* draw the waveform using this */
  74.  
  75. #define WFI_ZeroPen     (WFI_Dummy + 6)
  76.       /* draw for dotted wave only, same as BGPen for no zero line */
  77.  
  78. #define WFI_OsciPen     (WFI_Dummy + 7)
  79.       /* the 'oscilloscope' screen background */
  80.  
  81.  
  82. #define  WF_SINE_WAVE         0
  83. #define  WF_TRIANGULAR_WAVE   1
  84. #define  WF_RAMPUP_WAVE       2
  85. #define  WF_RAMPDOWN_WAVE     3
  86. #define  WF_SQUARE_WAVE       4
  87. #define  WF_ALL_IMAGES        5
  88.  
  89.  
  90. /*    These define the way the wave is drawn.  There are two different types: solid
  91.  *    means Move() pixel by pixel along the zero line and draw a vertical line for every
  92.  *    amplitude value.  Dotted means using WritePixel along the wave outline.
  93.  */
  94. #define  WF_SOLID_DISPLAY     0
  95. #define  WF_DOTTED_DISPLAY    1
  96.  
  97.  
  98. #endif /* WAVEFORMS_H */
  99.  
  100.  
  101.  
  102.